package router

import (
	"github.com/gin-gonic/gin"
	"test_demo/config"
	"test_demo/router/client"
)
//初始化总路由
func InitRouter()  {
	configs := new(config.Config)
	configData := configs.GetConfig()
	r:=gin.Default()
	r.GET("/hello", func(context *gin.Context) {
		context.Writer.WriteString("hello world")
	})
	//初始化客户端路由
	client.InitRouter(r)
	r.Run(configData.Port)
}
